<?php

declare(strict_types=1);

namespace Dreamcat\ApiDocTest\Demo\Route;

use Dreamcat\ApiDoc\RouteDefineScanInterface;
use ReflectionException;

/**
 * 扫描跌幅
 * @author vijay
 */
class RouteScan implements RouteDefineScanInterface
{
    /**
     * @inheritDoc
     * @throws ReflectionException
     */
    public function scanRouteList(string $projectPath): array
    {
        $list = [];
        foreach (TestCaseFactory::getList() as $item) {
            $list[] = $item[0];
        }
        return $list;
    }
}

# end of file
